#delimit; 
clear all;
set more off;

capture log close;

log using log/atusact_0321.log, replace;
 
import delimited
tucaseid
tuactivity_n
tuactdur24
tucc5
tucc5b
trtcctot_ln
trtcc_ln
trtcoc_ln
tustarttim
tustoptime
trcodep
trtier1p
trtier2p
tucc8
tucumdur
tucumdur24
tuactdur
tr_03cc57
trto_ln
trtonhh_ln
trtohh_ln
trthh_ln
trtnohh_ln
tewhere
tucc7
trwbelig
trtec_ln
tuec24
tudurstop
 using c:\atus\atus0321\atusact-0321\atusact_0321.dat, stringcols(1) ;
 
label variable tucaseid "ATUS Case ID (14-digit identifier)";
label variable tuactivity_n "Activity line number";
label variable tuactdur24 "Duration of activity in minutes (last activity truncated at 4:00 a.m.)";
label variable tucc5 "Was at least 1 of your own hh children < 13 in your care during this activity?";
label variable tucc5b "At least 1 of your non-own hh children < 13 in your care during this activity?";
label variable trtcctot_ln "Minutes during activity providing secondary childcare for all children < 13";
label variable trtcc_ln "Minutes during activity prov. 2ndary childcare for hh & own nonhh children < 13";
label variable trtcoc_ln "Minutes during activity providing 2ndary childcare for nonown nonhh children <13";
label variable tustarttim "Activity start time";
label variable tustoptime "Activity stop time";
label variable trcodep "Pooled six-digit activity code";
label variable trtier1p "Pooled lexicon tier 1: 1st and 2nd digits of 6-digit activity code";
label variable trtier2p "Pooled lexicon tiers 1 and 2: 1st four digits of 6-digit activity code";
label variable tucc8 "Other than hh or own nonhh children, child 0-12 in your care during activity?";
label variable tucumdur "Cum. duration of activity lengths in minutes; last activity not trunc. at 4:00am";
label variable tucumdur24 "Cum. duration of activity lengths in minutes; last activity truncated at 4:00am";
label variable tuactdur "Duration of activity in minutes (last activity not truncated at 4:00 a.m.)";
label variable tr_03cc57 "Household or own non-household child < 13 in your care during this activity?";
label variable trto_ln "Minutes during activity providing secondary childcare for own children < 13 ";
label variable trtonhh_ln "Minutes during activity providing 2ndary childcare for own nonhh children < 13";
label variable trtohh_ln "Minutes during activity providing secondary childcare for own hh children < 13";
label variable trthh_ln "Minutes during activity providing secondary childcare for hh children < 13";
label variable trtnohh_ln "Minutes during activity providing 2ndary childcare for nonown hh children < 13";
label variable tewhere "Edited: where were you during the activity?";
label variable tucc7 "Was at least 1 of own non-hh children < 13 in your care during this activity?";
label variable trwbelig "Flag identifying activities eligible for the Well-Being Module";
label variable trtec_ln "Time (in minutes) spent providing eldercare by activity";
label variable tuec24 "Which times/activities did you provide that care or assistance yesterday?";
label variable tudurstop "Method for reporting activity duration";

sort tucaseid tuactivity_n;

gen duration=tuactdur24/60; 

su;

save work/atusact_0321.dta, replace;

log close;